package cn.iocoder.yudao.module.erp.controller.admin.contractpaymentplan.vo.contractpaymentplandetail;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 合同付款计划明细 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ContractPaymentPlanDetailRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "24422")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "关联付款计划主表ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2266")
    @ExcelProperty("关联付款计划主表ID")
    private Long paymentPlanId;

    @Schema(description = "付款计划编号")
    @ExcelProperty("付款计划编号")
    private String planNo;

    @Schema(description = "付款期数")
    @ExcelProperty("付款期数")
    private String period;

    @Schema(description = "计划付款日期")
    @ExcelProperty("计划付款日期")
    @DateTimeFormat
    private LocalDateTime planDate;

    @Schema(description = "付款类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "DOWN_PAYMENT")
    @ExcelProperty("付款类型")
    @DictFormat(value = "payment_type")
    private String paymentType;

    @Schema(description = "计划付款比例(%)")
    @ExcelProperty("计划付款比例(%)")
    private Integer planPaymentRatio;

    @Schema(description = "计划付款金额")
    @ExcelProperty("计划付款金额")
    private BigDecimal planPaymentAmount;

    @Schema(description = "实际付款状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("实际付款状态")
    private String actualPaymentStatus;

    @Schema(description = "实际付款金额")
    @ExcelProperty("实际付款金额")
    private BigDecimal actualAmount;

    @Schema(description = "实际付款日期")
    @ExcelProperty("实际付款日期")
    private LocalDateTime actualDate;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}